//
//  XiuxiuViewController.m
//  wuliangye
//
//  Created by jarze on 2017/5/3.
//  Copyright © 2017年 jarze. All rights reserved.
//

#import "XiuxiuViewController.h"
#import "XXRadarView.h"
@interface XiuxiuViewController ()
@property (nonatomic, weak)XXRadarView *radarView;

@end

@implementation XiuxiuViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    
    self.navigationItem.title = @"雷达";
    
    XXRadarView *radarView = [[XXRadarView alloc]initWithFrame:CGRectMake(50, 100, 250, 250)];
    self.radarView = radarView;
    
//    radarView.dataSource = self;
//    radarView.delegate = self;
    radarView.radius = self.view.bounds.size.width * 0.5;
    
//    radarView.centerPersonImage = [UIImage imageNamed:@"222"];
//    [radarView scan];
    
    [self.view addSubview:radarView];
    // Do any additional setup after loading the view from its nib.
}
- (void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
    [self.radarView scan];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
